package com.bancomer.pig.functions;

import java.io.FileNotFoundException;

import org.apache.pig.data.Tuple;

public class UnitTest {

	public static void main(String[] args) {
		
		
		
		try {
			
			//System.out.print(PigUtils.compareDate("2014-05-02", "2014-05-03", ">=", "yyyy-MM-dd"));
			
			MockRecordReader reader = new MockRecordReader("c:\\caca.txt");
			IndexOfLoader custLoader = new IndexOfLoader("0-3","3-6","10-37");
			
			  custLoader.prepareToRead(reader, null);
			  
			  Tuple tuple = custLoader.getNext();
			  
			  String ts = (String)tuple.get(0);
			  
			  System.out.println(ts);
			  
			  ts = (String)tuple.get(1);
			  
			  System.out.println(ts);
			  
			  ts = (String)tuple.get(2);
			  
			  System.out.println(ts);
			  
			  
			
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		  
		

	}

}
